var Administration = {
    /**
     * Saves menu.
     */
    saveSettings : function(){
        send = "";
        $(".showModule").each(function()
        {
            if(this.checked){
                var i = $(this).val();
            
                send += "name[]=" + $(".showModuleName-" + i).val() + "&title[]=" + $(".showModuleTitle-" + i).val() + "&moduleName[]=" + $(".showModuleModule-" + i).val() + "&";
            }
        });
        Cyfy.ajax("Administration", "saveBlock", "", send, "Blocks.reload(\"Administration\", \"fastNavigation\"); ");
    }
}

$(document).ready(function(){
	$(".showModule").click(function(){
        Administration.saveSettings();
	});
});